/*
Write your variables here. All available variables can be
found in element-ui/packages/theme-chalk/src/common/var.scss.
For example, to overwrite the theme color:
*/
$--color-primary: $themeColor;

/* icon font path, required */
$--font-path: '~element-ui/lib/theme-chalk/fonts';

@import "../../../node_modules/element-ui/packages/theme-chalk/src/index";

.el-button {
  // border-radius: 50px;
}

.el-button--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(40, 66, 200, 1) 0%, rgba(63, 87, 228, 1) 100%);
  box-shadow: 0 5px 13px -5px rgb(63, 90, 254);

  &:hover, &:focus, &:active {
    background: linear-gradient(90deg, rgba(34, 66, 230, 1) 0%, rgba(34, 66, 230, 1) 100%);
  }

  &:hover {
    &:after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      z-index: 10;
      background-color: rgba(255, 255, 255, 0.3);
    }
  }
}

.el-button--primary.is-disabled {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(32, 52, 158, 1) 0%, rgba(32, 52, 158, 1) 100%);
  box-shadow: none;

  .btn-content {
    opacity: 0.6;
  }

  &:hover, &:focus, &:active {
    background: linear-gradient(90deg, rgba(32, 52, 158, 1) 0%, rgba(32, 52, 158, 1) 100%);
  }

  &:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.1);
  }
}

.el-button--plain {
  border: 1px solid #EDECF2;
  box-shadow: 0px 1px 6px 0px rgba(238, 237 ,241 ,0.5);
}

.el-input__inner {
  // border-radius: 50px;
  text-align: left !important;
  border: 1px solid #EDECF2;
  box-shadow: 0px 1px 6px 0px rgba(238, 237 ,241 ,0.5);
}

.el-dialog {
  .el-input__inner {
    // border-radius: 2px;
    border: 1px solid #DCDFE6;
    box-shadow: none;
  }
}

.el-table {
  th {
    background-color: #FBFAFD;
  }

  td, th.is-leaf {
    border-bottom: 1px solid #F5F4F8;
  }

  // 鼠标移上时，当前行背景色（固定了列的 el-table，鼠标移上时，tr 标签上会多一个 .hover-row ）
  .el-table__body tr.el-table__row.hover-row {
    > td {
      background-color: #FBFAFD;
    }
  }

  // 鼠标移上时，当前行背景色（正常 el-table）
  &.el-table--enable-row-hover .el-table__body tr.el-table__row {
    &:hover {
      > td {
        background-color: #FBFAFD;
      }
    }
  }

  &:before {
    background-color: transparent;
  }

  .warning-row {
    background: red;
    // color: #ffffff;
  }

  .success-row {
    background: #f0f9eb;
  }
}

.el-table__fixed::before, .el-table__fixed-right::before {
  display: none;
}

.el-tooltip {
  &:focus {
    outline: none;
  }
}

// .el-tooltip__popper {
//   max-width: 500px;
// }

.el-dialog__header {
  text-align: left;
  border-bottom: 1px solid #F5F4F8 !important;
}

.el-dialog__footer {
  border-top: 1px solid #F5F4F8;
  padding-bottom: 10px;
}

.vue-treeselect__control {
  height: 32px !important;
  border: 1px solid #DCDFE6 !important;
  border-radius: 2px !important;
  padding-left: 10px !important;
  font-size: 12px !important;
}

.vue-treeselect__menu {
  border-radius: 2px !important;
  border-color: #DCDFE6 !important;
  font-size: 12px !important;
}

.el-popover {
  padding: 0 !important;
}
